home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / gadgets / getscreenmode.m < prev    next >
Encoding:
Text File  |  2001-10-28  |  5.2 KB  |  90 lines

  1. /*
  2. **  $VER: getscreenmode.h 44.1 (19.10.1999)
  3. **  Includes Release 44.1
  4. **
  5. **  Definitions for the getscreenmode.gadget BOOPSI class
  6. **
  7. **  (C) Copyright 1987-1999 Amiga, Inc.
  8. **      All Rights Reserved
  9. */
  10. /*****************************************************************************/
  11. MODULE 'intuition/gadgetclass'
  12. /*****************************************************************************/
  13. /* Attributes defined by the getfont.gadget class
  14.  */
  15. #define GETSCREENMODE_Dummy         (REACTION_Dummy + $41000)
  16. #define GETSCREENMODE_TitleText       (GETSCREENMODE_Dummy+1)
  17. /* (STRPTR) Title of the screenmode requester (default: None) (OM_NEW, OM_SET) */
  18. #define GETSCREENMODE_Height      (GETSCREENMODE_Dummy+2)
  19. /* (WORD) Height of the screenmode requester (default: 200) (OM_NEW, OM_SET, OM_GET) */
  20. #define GETSCREENMODE_Width         (GETSCREENMODE_Dummy+3)
  21. /* (WORD) Width of the screenmode requester (default: 300) (OM_NEW, OM_SET, OM_GET) */
  22. #define GETSCREENMODE_LeftEdge      (GETSCREENMODE_Dummy+4)
  23. /* (WORD) Left edge of the screenmode requester (default: 30) (OM_NEW, OM_SET, OM_GET) */
  24. #define GETSCREENMODE_TopEdge       (GETSCREENMODE_Dummy+5)
  25. /* (WORD) Top edge of the screenmode requester (default: 20) (OM_NEW, OM_SET, OM_GET) */
  26. #define GETSCREENMODE_DisplayID       (GETSCREENMODE_Dummy+6)
  27. /* (ULONG) display id of screenmode (default: 0 (LORES_KEY)) (OM_NEW, OM_SET, OM_GET, OM_NOTIFY) */
  28. #define GETSCREENMODE_DisplayWidth    (GETSCREENMODE_Dummy+7)
  29. /* (ULONG) Display width (default: 640) (OM_NEW, OM_SET, OM_GET, OM_NOTIFY) */
  30. #define GETSCREENMODE_DisplayHeight     (GETSCREENMODE_Dummy+8)
  31. /* (ULONG) Display height (default: 200) (OM_NEW, OM_SET, OM_GET, OM_NOTIFY) */
  32. #define GETSCREENMODE_DisplayDepth    (GETSCREENMODE_Dummy+9)
  33. /* (UWORD) Display depth (default: 2) (OM_NEW, OM_SET, OM_GET, OM_NOTIFY) */
  34. #define GETSCREENMODE_OverscanType    (GETSCREENMODE_Dummy+10)
  35. /* (UWORD) Type of overscan (default: OSCAN_TEXT) (OM_NEW, OM_SET, OM_GET, OM_NOTIFY) */
  36. #define GETSCREENMODE_AutoScroll    (GETSCREENMODE_Dummy+11)
  37. /* (BOOL) Autoscroll setting(default: TRUE) (OM_NEW, OM_SET, OM_NOTIFY) */
  38. #define GETSCREENMODE_InfoOpened    (GETSCREENMODE_Dummy+12)
  39. /* (BOOL) Info window initially opened?(default: FALSE) (OM_NEW, OM_SET) */
  40. #define GETSCREENMODE_InfoLeftEdge    (GETSCREENMODE_Dummy+13)
  41. /* (WORD) Info window left edge (default: 30) (OM_NEW, OM_SET, OM_GET) */
  42. #define GETSCREENMODE_InfoTopEdge     (GETSCREENMODE_Dummy+14)
  43. /* (WORD) Info window top edge (default: 20) (OM_NEW, OM_SET, OM_GET) */
  44. #define GETSCREENMODE_DoWidth       (GETSCREENMODE_Dummy+15)
  45. /* (BOOL) Display Width gadget? (default: FALSE) (OM_NEW, OM_SET) */
  46. #define GETSCREENMODE_DoHeight      (GETSCREENMODE_Dummy+16)
  47. /* (BOOL) Display Height gadget? (default: FALSE) (OM_NEW, OM_SET) */
  48. #define GETSCREENMODE_DoDepth       (GETSCREENMODE_Dummy+17)
  49. /* (BOOL) Display Depth gadget? (default: FALSE) (OM_NEW, OM_SET) */
  50. #define GETSCREENMODE_DoOverscanType  (GETSCREENMODE_Dummy+18)
  51. /* (BOOL) Display Overscan Type gadget? (default: FALSE) (OM_NEW, OM_SET) */
  52. #define GETSCREENMODE_DoAutoScroll    (GETSCREENMODE_Dummy+19)
  53. /* (BOOL) Display AutoScroll gadget? (default: FALSE) (OM_NEW, OM_SET) */
  54. #define GETSCREENMODE_PropertyFlags     (GETSCREENMODE_Dummy+20)
  55. /* (ULONG) Must have these Property flags (default: DIPF_IS_WB) (OM_NEW, OM_SET) */
  56. #define GETSCREENMODE_PropertyMask    (GETSCREENMODE_Dummy+21)
  57. /* (ULONG) Only these should be looked at (default: DIPF_IS_WB) (OM_NEW, OM_SET) */
  58. #define GETSCREENMODE_MinWidth      (GETSCREENMODE_Dummy+22)
  59. /* (ULONG) Minimum display width to allow (default: 16) (OM_NEW, OM_SET) */
  60. #define GETSCREENMODE_MaxWidth      (GETSCREENMODE_Dummy+23)
  61. /* (ULONG) Maximum display width to allow (default: 16368) (OM_NEW, OM_SET) */
  62. #define GETSCREENMODE_MinHeight       (GETSCREENMODE_Dummy+24)
  63. /* (ULONG) Minimum display height to allow (default: 16) (OM_NEW, OM_SET) */
  64. #define GETSCREENMODE_MaxHeight       (GETSCREENMODE_Dummy+25)
  65. /* (ULONG) Maximum display height to allow (default: 16368) (OM_NEW, OM_SET) */
  66. #define GETSCREENMODE_MinDepth      (GETSCREENMODE_Dummy+26)
  67. /* (ULONG) Minimum display depth to allow (default: 1) (OM_NEW, OM_SET) */
  68. #define GETSCREENMODE_MaxDepth      (GETSCREENMODE_Dummy+27)
  69. /* (ULONG) Maximum display depth to allow (default: 24) (OM_NEW, OM_SET) */
  70. #define GETSCREENMODE_FilterFunc    (GETSCREENMODE_Dummy+28)
  71. /* (struct Hook *) Function to filter mode id's (default: None) (OM_NEW, OM_SET) */
  72. #define GETSCREENMODE_CustomSMList    (GETSCREENMODE_Dummy+29)
  73. /* (struct List *) Exec list of struct DisplayMode (default: None) (OM_NEW, OM_SET) */
  74. /*****************************************************************************/
  75. /*
  76.  * getfont.gadget methods
  77.  */
  78. #define GSM_REQUEST   ($610001)
  79. /* The GSM_REQUEST method should be called whenever you want to open
  80.  * a screenmode requester.
  81.  */
  82. OBJECT gsmRequest
  83.   MethodID:ULONG,               /* GSM_REQUEST */
  84.   gsmr_Window:PTR TO Window     /* The window that will be locked when the requester is active.
  85.                 If not provided, no window will be locked and no visual updating
  86.                 of any gadgets will take place. This should be the window the gadget
  87.                 resides in. */
  88.  
  89. #define RequestScreenMode(obj, win )  DoMethod(obj, GSM_REQUEST, win)
  90.